/*
 * timer.h
 *
 *  Created on: Apr 16, 2013
 *      Author: locpx
 */
#include "defines.h"

#ifndef TIMER_H_
#define TIMER_H_

// start the timer
void initTimer(TIMER *timer);

// stop the timer
void stopTimer(TIMER *timer);

// reset the timer
void resetTimer(TIMER *timer);

// display time in seconds with 2 decimals
void displayTimer(TIMER *timer);

// display time in hh:mm:ss.dd
void displayTimerHMS(TIMER *timer);

// return time in milliseconds
U64 getMSTimer(TIMER *timer);

// return system time
U64 getSysMSTimer(TIMER *timer);

#endif /* TIMER_H_ */
